﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model.EF;
using Model;

public partial class System_Role_RoleEdit : System.Web.UI.Page
{
    public string id = "";
    public SystemRole model = new SystemRole();
    public string rel = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["ids"] != null)
        {
            if (Request.QueryString["ids"].ToString() != "")
            {
                string ids = Request.QueryString["ids"].ToString();
                IRepository<SystemRole> RoleRepository = new EntityRepository<SystemRole>();
                model = RoleRepository.FindById(int.Parse(ids));

                rel = Request.QueryString["rel"].ToString();
            }
        }
    }    
}